home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!als-il2-02
- From: stefmit@ix.netcom.com
- Newsgroups: comp.lang.c++
- Subject: Re: Pause or wait command?
- Date: 13 Apr 1996 21:56:42 GMT
- Organization: Netcom
- Message-ID: <4kp7uq$s6p@cloner2.ix.netcom.com>
- References: <4kcpk4$mbo@daisy.flex.com.au> <316ECBF0.79FF@aai.arco.com>
- NNTP-Posting-Host: als-il2-02.ix.netcom.com
- X-NETCOM-Date: Sat Apr 13 2:56:42 PM PDT 1996
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <316ECBF0.79FF@aai.arco.com>,
- Brian Leach <lasbfl@aai.arco.com> wrote:
- >Tony L wrote:
- >>
- >> Hi all,
- >>
- >> Could someone please tell me how I can pause a program, or even a
- >> timed pause?
- >>
- >> I have a program that I would like it to display a message, but only
- >> for a few seconds and then carry on without intervention from the
- >> user.
- >>
- >> Thank you very much for your time....
- >
- >In UNIX, you use a combination of signal, pause, and alarm.
- >
- >Check out the book UNIX System Programming by Keith Haviland,
- >Ben Salamam, Addison Wesley, ISBN 0-201-12919-1, Page 139 for
- >a complete example.
- >
- >-Brian :-)
- >lasbfl@aai.arco.com
-
-
- For DOS you can use the "void sleep (unsigned seconds)" function, to be found
- in dos.h. I think works for UNIX, Win32 and OS/2 also.
-